<?php
Yii::import('Cms.components.widgets.BaseCmsWidget');
class BaseListWidget extends BaseCmsWidget {
    
    protected $modelPath;
    
    /**
    * The url of page to create a new widget instance
    * 
    * @param array $params additional parameter to add to url's querystring
    * @return string
    */
    public function getCreateUrl($params = array()) {
        $params['content_type'] = $this->modelPath;
        
        $route = '/Cms/widgets/baseList/create';
        return url($route, $params);
    }   
    
}